#include "logger.h"

namespace logger {

void InitGlog(const char *argv0) {
    FLAGS_log_dir = "/develop/log";
    FLAGS_alsologtostderr = true;
    FLAGS_colorlogtostderr = true;
    FLAGS_stderrthreshold = google::GLOG_INFO;
    FLAGS_max_log_size = 10;
    google::InitGoogleLogging(argv0);
    google::InstallFailureSignalHandler();
}

void ShutdownGlog() {
    google::FlushLogFiles(google::GLOG_INFO);
    google::ShutdownGoogleLogging();
}

}  // namespace logger
